package com.ruoyi.ChatContentInfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ChatContentInfo.mapper.ChatContentInfoMapper;
import com.ruoyi.ChatContentInfo.domain.ChatContentInfo;
import com.ruoyi.ChatContentInfo.service.IChatContentInfoService;

/**
 * ChatContentInfoService业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-10
 */
@Service
public class ChatContentInfoServiceImpl implements IChatContentInfoService 
{
    @Autowired
    private ChatContentInfoMapper chatContentInfoMapper;

    /**
     * 查询ChatContentInfo
     * 
     * @param id ChatContentInfo主键
     * @return ChatContentInfo
     */
    @Override
    public ChatContentInfo selectChatContentInfoById(Long id)
    {
        return chatContentInfoMapper.selectChatContentInfoById(id);
    }

    /**
     * 查询ChatContentInfo列表
     * 
     * @param chatContentInfo ChatContentInfo
     * @return ChatContentInfo
     */
    @Override
    public List<ChatContentInfo> selectChatContentInfoList(ChatContentInfo chatContentInfo)
    {
        return chatContentInfoMapper.selectChatContentInfoList(chatContentInfo);
    }

    /**
     * 新增ChatContentInfo
     * 
     * @param chatContentInfo ChatContentInfo
     * @return 结果
     */
    @Override
    public int insertChatContentInfo(ChatContentInfo chatContentInfo)
    {
        return chatContentInfoMapper.insertChatContentInfo(chatContentInfo);
    }

    /**
     * 修改ChatContentInfo
     * 
     * @param chatContentInfo ChatContentInfo
     * @return 结果
     */
    @Override
    public int updateChatContentInfo(ChatContentInfo chatContentInfo)
    {
        return chatContentInfoMapper.updateChatContentInfo(chatContentInfo);
    }

    /**
     * 批量删除ChatContentInfo
     * 
     * @param ids 需要删除的ChatContentInfo主键
     * @return 结果
     */
    @Override
    public int deleteChatContentInfoByIds(Long[] ids)
    {
        return chatContentInfoMapper.deleteChatContentInfoByIds(ids);
    }

    /**
     * 删除ChatContentInfo信息
     * 
     * @param id ChatContentInfo主键
     * @return 结果
     */
    @Override
    public int deleteChatContentInfoById(Long id)
    {
        return chatContentInfoMapper.deleteChatContentInfoById(id);
    }
}
